Looping Through a Job's Paper Types
The application-defined function called by theGXForEachJobPaperTypeDo
function takes two parameters: the view device object associated with a particular printer object, and a pointer to a reference constant in which you specify data passed into the application-defined function. For example, this is how you should declare the application-function if you were to name it MyPaperTypeFunction:
gxLoopStatus MyPaperTypeFunction(gxPaperType aPaperType, void *refCon);
- aPaperType
A reference to the current paper type. This is provided by QuickDraw GX when the MyPaperTypeFunction function is called.refCon
- A pointer to a reference constant.
- function result
- A Boolean to indicate whether looping should stop.
DESCRIPTION
When you use theGXForEachJobPaperTypeDo
function, QuickDraw GX calls the application-defined function for each paper-type object referenced by the specified job object until the application-defined function returnsgxStopLooping
or there are no more paper types in the list. If you want theGXForEachJobPaperTypeDo
function to continue with the next paper type, returngxKeepLooping
from the application-defined function.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help